<nz-layout class="white-back">
  <nz-page-header class="site-page-header white-back share-header" nzTitle="共享大厅" [nzSubtitle]="subTitle()" nzBackIcon (nzBack)="goBack()">
    <nz-page-header-extra *ngIf="sharePage.pageName!='disk'">
      <div >
        <form nz-form>
          <nz-form-item>
            <nz-radio-group style="padding-top: 30px" [(ngModel)]="sharePage.searchModel" name="searchModel">
              <label nz-radio nzValue="user">搜索用户</label>
              <label nz-radio nzValue="file">搜索文件</label>
            </nz-radio-group>
            <nz-input-group class="search-bt-box" nzSearch nzSize="default" [nzSuffix]="inputClearTpl">
              <input type="text" nz-input [placeholder]="sharePage.searchModel=='user'? '搜索用户':'搜索全局文件'" [(ngModel)]="sharePage.searchValue"  name="globalSearch"/>
            </nz-input-group>
            <ng-template #inputClearTpl>
              <i
                nz-icon
                class="ant-input-clear-icon"
                nzTheme="fill"
                nzType="close-circle"
              ></i>
              <button type="submit" nz-button class="search-bt" nzType="default"
                      nzSearch nzSize="small" (click)="searchClick()">搜索</button>
            </ng-template>
          </nz-form-item>
        </form>
      </div>
    </nz-page-header-extra>
  </nz-page-header>
  <nz-content>
    <router-outlet></router-outlet>
  </nz-content>
</nz-layout>
